#!/bin/bash

# 创建主目录结构
mkdir -p static/{css,js,img}
mkdir -p templates
mkdir -p modules/{device,project,report,utils}

# 创建必要的文件
touch app.py
touch config.py
touch requirements.txt

# 创建前端模板文件
touch templates/index.html
touch templates/project.html
touch templates/device.html
touch templates/report.html

# 创建静态资源文件
touch static/css/main.css
touch static/css/project.css
touch static/css/device.css
touch static/css/report.css
touch static/js/main.js
touch static/js/project.js
touch static/js/device.js
touch static/js/report.js

# 创建后端模块文件
touch modules/device/__init__.py
touch modules/device/routes.py
touch modules/device/models.py
touch modules/project/__init__.py
touch modules/project/routes.py
touch modules/project/models.py
touch modules/report/__init__.py
touch modules/report/routes.py
touch modules/report/models.py
touch modules/utils/__init__.py
touch modules/utils/helpers.py

echo "项目结构创建完成！"